Change device discovery to work with 276C in serial mode.
authorrobertlipe <robertlipe@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Sun, 29 Jun 2014 18:30:35 +0000 (18:30 +0000)
committerrobertlipe <robertlipe@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Sun, 29 Jun 2014 18:30:35 +0000 (18:30 +0000)
gpsbabel/jeeps/gpsapp.cc

index ebebfe5546d5987d566e54efb5ccae301d65ed27..a3a98d6addce9d5d4db37dd4db9a49c07bcada40 100644 (file)
@@ -325,7 +325,10 @@ static int32 GPS_A000(const char* port)
           goto carry_on;
         }
 
-        if (GPS_Packet_Read(fd, &rec) <= 0) {
+        // Garmin 276C serial - not USB - sees a zero here, so we changed
+        // <= 0 to <0 on 2014-06-29 per Pierre Brial.
+         
+        if (GPS_Packet_Read(fd, &rec) < 0) {
           goto carry_on;
         }